<div class="titlebar fn-clear"><i class="iconfont icon-my_icon"></i><span class="fn-fb">账户信息</span></div>
<table class="pure-table pure-table-title">
    <thead><tr><th class="w100 fn-tac">身份名称</th><th>备注</th></tr></thead>
    <tbody>
        {if $vip || $agent}
        <td class="fn-tac"><span class="badge m5">其它身份</span></td><td>
            {if $vip}<span class="badge bg-red m5">会员【{$vip.vipcard.name}】</span>{/if}
            {if $agent}<span class="badge bg-yellow m5">社群主</span>{/if}
        </td></tr>
        {/if}
        {if count($store) > 0}
        <tr><td class="fn-tac"><span class="badge bg-blue">好店老板</span></td><td>
            <table class="pure-table">
                <thead>
                    <tr>
                        <th class="w60 fn-tac"></th>
                        <th>好店名称</th>
                        <th class="w140">联系电话</th>
                    </tr>
                </thead>
                <tbody>
                    {foreach $store as $vo}
                    <tr>
                        <td class="fn-tac"><img src="{$vo.img}?x-oss-process=style/80" class="w40" /></td>
                        <td>
                            <i class="iconfont icon-home_icon"></i><a href="{:url('store/review',['id'=>$vo.id])}" class="fn-fb">{$vo.name}</a><br />
                            <i class="iconfont icon-address_icon"></i><span class="gray">{$vo.address}</span>
                        </td>
                        <td>{$vo.telphone}</td>
                    </tr>
                    {/foreach}
                </tbody>
            </table>
        </td></tr>
        {/if}
        {if !empty($worker)}<tr><td class="fn-tac"><span class="badge bg-green">合伙人</span></td><td>
            <table class="pure-table">
                <thead>
                    <tr>
                        <th class="w60 fn-tac"></th>
                        <th>好店名称</th>
                        <th class="w140">联系电话</th>
                    </tr>
                </thead>
                <tbody>
                    {foreach $worker_store as $vo}
                    <tr>
                        <td class="fn-tac"><img src="{$vo.img}?x-oss-process=style/80" class="w40" /></td>
                        <td>
                            <i class="iconfont icon-home_icon"></i><a href="{:url('store/review',['id'=>$vo.id])}" class="fn-fb">{$vo.name}</a><br />
                            <i class="iconfont icon-address_icon"></i><span class="gray">{$vo.address}</span>
                        </td>
                        <td>{$vo.telphone}</td>
                    </tr>
                    {/foreach}
                </tbody>
            </table>
        </td></tr>{/if}
        {foreach $store_worker as $rs}
        <tr><td class="fn-tac"><span class="badge bg-yellow">{$rs.is_cashier ? '管理员' : '员工'}</span></td>
            <td>
                <table class="pure-table">
                    <tr>
                        <td class="w60 fn-tac"><img src="{$rs.store.img}?x-oss-process=style/80" class="w40" /></td>
                        <td>
                            <i class="iconfont icon-home_icon"></i><a href="{:url('store/review',['id'=>$rs.store.id])}" class="fn-fb">{$rs.store.name}</a><br />
                            <i class="iconfont icon-address_icon"></i><span class="gray">{$rs.store.address}</span>
                        </td>
                        <td class="w140">{$rs.store.telphone}</td>
                    </tr>
                </table>
            </td>
        </tr>
        {/foreach}
    </tbody>
</table>
<div class="titlebar fn-fb">用户信息</div>
<table class="pure-table">
    <tr><td class="w120">微信头像:</td><td><img src="{$user.face}" class="w80"></td></tr>  
    <tr><td>用户昵称:</td><td>{$user.nickname}</td></tr>  
    <tr><td>邀请码:</td><td>{$user.invite_code}</td></tr>     
    <tr><td>绑定手机:</td><td>{$user.phone_uid}</td></tr> 
    <tr><td>小程序openid:</td><td>{$user.miniapp_uid}</td></tr> 
    <tr><td>公众号openid:</td><td>{$user.official_uid}</td></tr>
    <tr><td>登录IP:</td><td>{$user.login_ip}</td></tr>  
    <tr><td>登录时间:</td><td>{$user->login_time|date='Y-m-d H:i'}</td></tr>  
    <tr><td>创建时间:</td><td>{$user->create_time|date='Y-m-d H:i'}</td></tr> 
    <tr><td>状态:</td><td>{if $user.is_lock}<span class="badge bg-red">锁定</span>{else}<span class="badge">正常</span>{/if}</td></tr> 
</table>